﻿#ifndef SETUP2WIND_H
#define SETUP2WIND_H

#include <QWidget>
#include "infochange.h"
#include "ui_infochange.h"
#include <QPushButton>
#include <dbHelper.h>
#include <QDebug>
#include <mainwindow.h>
#include <intListener.h>

namespace Ui {
class setup2wind;
}

class setup2wind : public QWidget
{
    Q_OBJECT

public:
    explicit setup2wind(QWidget *parent = 0);
    ~setup2wind();
    static intListener typechangefl;
    void saConsumableType();//耗材类型
    void saNames();//样本名
    void saTypes();//样本类型
    void saSizes();//样本体系
    void chan1();
    void chan2();
    void chan3();
    void chan4();

signals:
    void changeTotalWindow();

private slots:
    void on_infochange_clicked();
    void on_defaultSampleName_currentIndexChanged(const QString &arg1);
    void on_defaultSampleType_currentIndexChanged(const QString &arg1);
    void on_defaultAmpSystem_currentIndexChanged(const QString &arg1);
    void on_returnBtn_clicked();
    void on_SaveBtn_clicked();
    void on_changeModel_currentTextChanged(const QString &arg1);
    void on_pushButton_9_clicked();
    void exchangetype();

    void doorStatusChanged();
private:
    void showEvent(QShowEvent *event) override;


private:
    Ui::setup2wind *ui;
    infoChange *infoch;
    TcpClient *tcpClient;
    CommonHelper *common;

    int namefl=0;
    int typefl=0;
    int sizefl=0;


    void rwtd();
    void sjh();
};

#endif // SETUP2WIND_H
